var fs = require('fs')
var path = require('path')

var src = path.resolve("./src/lib");
var dest = path.resolve("./dist/lib");

fs.readdir(src, function (err, files) { 
    files.map(function (file) {
        var b = fs.existsSync(dest)
        if (!!!b) {
            fs.mkdirSync(dest)
        }
        fs.copyFileSync(src + "/" + file, dest + "/" + file);
    })
}) 